package com.example.sys.job.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.core.po.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@ApiModel(value = "任务信息")
@TableName(value = "sys_job")
public class SysJob extends BasePo<SysJob> {

    @ApiModelProperty(value = "cron表达式")
    @TableField(value = "cron")
    private String cron;

    @ApiModelProperty(value = "执行类")
    @TableField(value = "job_class")
    private String jobClass;

    @ApiModelProperty(value = "状态")
    @TableField(value = "enabled")
    private boolean enabled;

    @ApiModelProperty(value = "描述")
    @TableField(value = "context")
    private String context;
}
